///////////////////////////////////////////////////////////////////////////////
//
//
//
///////////////////////////////////////////////////////////////////////////////

package org.kolonitsky.alexey.mvcext.model
{
    import flash.geom.Rectangle;

    import org.kolonitsky.alexey.debug.DebugWrapper;

    public class GuideStepVO
    {
        public var index:int = -1;
        public var title:String = "";
        public var text:String = "";
        public var focusRect:Rectangle = null;
        public var lookupChain:Array = [];

        public var completeNotification:String = "";
        public var duration:Number = 0.0;

        public function GuideStepVO(text:String, focusRect:*, completeSign:*)
        {
            this.text = text;

            if (focusRect is Rectangle)
                this.focusRect = focusRect;
            else if (focusRect is Array)
                this.lookupChain = focusRect;
            else
                DebugWrapper.trace("INFO: Focus rect not defined.");

            if (completeSign is String)
                this.completeNotification = completeSign as String;
            else if (completeSign is Number)
                this.duration = completeSign as Number;
            else
                DebugWrapper.trace("INFO: complete sign in not definded")
        }
    }
}
